tools: Make restore work properly with PV superpage flag
authorDave McCracken <dcm@mccr.org>
Mon, 12 Nov 2012 17:03:19 +0000 (17:03 +0000)
committerDave McCracken <dcm@mccr.org>
Mon, 12 Nov 2012 17:03:19 +0000 (17:03 +0000)
commita5bf5e04494fe280813c0b8e912b8d7856499f93
tree49ff54bd3ac6e659077518aba9841d826e36daf9
parent70973953ab1d419c078480380aab8dc36ba9a646
tools: Make restore work properly with PV superpage flag

For PV guests, the superpage flag means to unconditionally allocate all
pages as superpages, which is required for Linux hugepages to work.  Support
for this on restore was not supported.  This patch adds proper support for
the superpage flag on restore.

For HVM guests, the superpage flag has been used to mean attempt to allocate
superpages if possible on restore.  This functionality has been preserved.

Signed-off-by: Dave McCracken <dave.mccracken@oracle.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_domain_restore.c